<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>click</title>
	<style type="text/css">
		#id1 {
			width: 500px;
			height: 500px;
			background: red;
		}
		#id2 {
			width: 100px;
			height: 100px;

			background: blue;
		}
		#id3 {
			width: 50px;
			height: 50px;
			background: green;
		}
	</style>
</head>
<body>
	<div id="id1">
		<div id="id2">
			<div id="id3">3</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../lib/jquery/dist/jquery.min.js"></script>
<script type="text/javascript">
	$('#id1').click(function() {
		console.log(1)
	})
	$('#id2').click(function(e) {
		console.log(2)
		e.stopPropagation()
	})
	$('#id3').click(function() {
		console.log(3)
	})
	$('body').click(function() {
		console.log('body')
	})
</script>
</html>